<?php
// +----------------------------------------------------------------------
// | Author: 发仔 <i@fazi.me> 
// +----------------------------------------------------------------------

namespace app\admin\controller;

use think\Db;

class Finance extends Base
{
    protected $id = 'car_use_id';
	protected $table = 'car_use';
	
	protected function search() {
		
		$P = input('param.');
		$where = ['name'=>['like',"%{$P['name']}%"]];
		
		//公务只能看公务订单
		if( $this->user['official'] ){
			$where['quota'] = ['>',0];
		}
		
		return $where;
		
	}
	
	public function limit() {
		
		$this->assign('notPopup',0);
		return $this->out();
	}
	
}
